package com.example.wishstar.model;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity(tableName = "wish")
public class Wish {
    @PrimaryKey()
    @ColumnInfo(name = "wishId", typeAffinity = ColumnInfo.INTEGER)
    public int wishId;

    @ColumnInfo(name = "userId", typeAffinity = ColumnInfo.INTEGER)
    public int userId;

    @ColumnInfo(name = "conutdownDays", typeAffinity = ColumnInfo.INTEGER)
    public int conutdownDays;

    @ColumnInfo(name = "conutdownDaysString", typeAffinity = ColumnInfo.TEXT)
    public String conutdownDaysString;

    @ColumnInfo(name = "wishTitle", typeAffinity = ColumnInfo.TEXT)
    public String wishTitle;

    @ColumnInfo(name = "wishIcon", typeAffinity = ColumnInfo.INTEGER)
    public int wishIcon;

    public Wish(int wishId, int userId, int conutdownDays, String conutdownDaysString, String wishTitle, int wishIcon) {
        this.wishId = wishId;
        this.userId = userId;
        this.conutdownDays = conutdownDays;
        this.conutdownDaysString = conutdownDaysString;
        this.wishTitle = wishTitle;
        this.wishIcon = wishIcon;
    }

    @Ignore
    public Wish() {

    }

    @Override
    public String toString() {
        return "Wish{" +
                "wishId=" + wishId +
                ", userId=" + userId +
                ", conutdownDays=" + conutdownDays +
                ", conutdownDaysString='" + conutdownDaysString + '\'' +
                ", wishTitle='" + wishTitle + '\'' +
                ", wishIcon=" + wishIcon +
                '}';
    }
}
